package com.zmn.mcc.services.interfaces.sys;

import com.zmn.common.dto.StatusDTO;
import com.zmn.mcc.model.entity.sys.McSys;
import com.zmn.mcc.model.entity.sys.McSysQuery;

import java.util.List;

/**
 * @author heguanghua
 * @since 2020/04/14 13:52
 */
public interface SysService {

    McSys findByKey(Integer sysId);

    List<McSys> listPageByQuery(McSysQuery query);

    List<McSys> listAll();
    List<McSys> listAll(Integer status);

    List<McSys> listByQuery(McSysQuery query);

    Integer countByQuery(McSysQuery query);


    Integer updateByKey(McSys sys);

    Integer updateStatus(Integer sysId, Integer status, String updater);
    Integer updateStatus(McSys sys);

    Integer updateStatusBatch(List<Integer> sysIds, Integer status, String updater);
    Integer updateStatusBatch(StatusDTO dto);

    Integer updateSort(Integer sysId, Integer sort);
    Integer updateSort(McSys sys);


    Integer insert(McSys sys);


    Integer deleteByKey(Integer sysId);
}
